<div class="phuongs view">
<h2><?php  __('Phuong');?></h2>
	<dl><?php $i = 0; $class = ' class="altrow"';?>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Id'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $phuong['Phuong']['id']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Quan'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $html->link($phuong['Quan']['id'], array('controller' => 'quans', 'action' => 'view', $phuong['Quan']['id'])); ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Phuongxa'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $phuong['Phuong']['phuongxa']; ?>
			&nbsp;
		</dd>
	</dl>
</div>
<div class="actions">
	<ul>
		<li><?php echo $html->link(__('Sửa', true), array('action' => 'edit', $phuong['Phuong']['id'])); ?> </li>
		<li><?php echo $html->link(__('Xóa', true), array('action' => 'delete', $phuong['Phuong']['id']), null, sprintf(__('Bạn có chắc muốn xóa không?', true), $phuong['Phuong']['id'])); ?> </li>
		<li><?php echo $html->link(__('Danh mục phường/xã', true), array('action' => 'index')); ?> </li>
		<li><?php echo $html->link(__('Thêm phường/xã', true), array('action' => 'add')); ?> </li>
		<li><?php echo $html->link(__('Danh mục quận/huyện', true), array('controller' => 'quans', 'action' => 'index')); ?> </li>
		<li><?php echo $html->link(__('Thêm quận/huyện', true), array('controller' => 'quans', 'action' => 'add')); ?> </li>
		<li><?php echo $html->link(__('Danh sách sinh viên', true), array('controller' => 'sinhviens', 'action' => 'index')); ?> </li>
		<li><?php echo $html->link(__('Thêm sinh viên', true), array('controller' => 'sinhviens', 'action' => 'add')); ?> </li>
	</ul>
</div>
	<div class="related">
		<h3><?php  __('Related Sinhviens');?></h3>
	<?php if (!empty($phuong['Sinhvien'])):?>
		<dl>	<?php $i = 0; $class = ' class="altrow"';?>
			<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Id');?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
	<?php echo $phuong['Sinhvien']['id'];?>
&nbsp;</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Phuong Id');?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
	<?php echo $phuong['Sinhvien']['phuong_id'];?>
&nbsp;</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Dantoc Id');?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
	<?php echo $phuong['Sinhvien']['dantoc_id'];?>
&nbsp;</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Doituong Id');?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
	<?php echo $phuong['Sinhvien']['doituong_id'];?>
&nbsp;</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Lop Id');?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
	<?php echo $phuong['Sinhvien']['lop_id'];?>
&nbsp;</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Mssv');?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
	<?php echo $phuong['Sinhvien']['mssv'];?>
&nbsp;</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Holot');?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
	<?php echo $phuong['Sinhvien']['holot'];?>
&nbsp;</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Ten');?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
	<?php echo $phuong['Sinhvien']['ten'];?>
&nbsp;</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Ngaysinh');?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
	<?php echo $phuong['Sinhvien']['ngaysinh'];?>
&nbsp;</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Gioitinh');?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
	<?php echo $phuong['Sinhvien']['gioitinh'];?>
&nbsp;</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Pass');?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
	<?php echo $phuong['Sinhvien']['pass'];?>
&nbsp;</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Email');?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
	<?php echo $phuong['Sinhvien']['email'];?>
&nbsp;</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Diachi');?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
	<?php echo $phuong['Sinhvien']['diachi'];?>
&nbsp;</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Dtdd');?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
	<?php echo $phuong['Sinhvien']['dtdd'];?>
&nbsp;</dd>
		</dl>
	<?php endif; ?>
		<div class="actions">
			<ul>
				<li><?php echo $html->link(__('Sửa thông tin sinh viên', true), array('controller' => 'sinhviens', 'action' => 'edit', $phuong['Sinhvien']['id'])); ?></li>
			</ul>
		</div>
	</div>
	<div class="related">
	<h3><?php __('Related Sinhviens');?></h3>
	<?php if (!empty($phuong['Sinhvien'])):?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php __('Id'); ?></th>
		<th><?php __('Phuong Id'); ?></th>
		<th><?php __('Dantoc Id'); ?></th>
		<th><?php __('Doituong Id'); ?></th>
		<th><?php __('Lop Id'); ?></th>
		<th><?php __('Mssv'); ?></th>
		<th><?php __('Holot'); ?></th>
		<th><?php __('Ten'); ?></th>
		<th><?php __('Ngaysinh'); ?></th>
		<th><?php __('Gioitinh'); ?></th>
		<th><?php __('Pass'); ?></th>
		<th><?php __('Email'); ?></th>
		<th><?php __('Diachi'); ?></th>
		<th><?php __('Dtdd'); ?></th>
		<th class="actions"><?php __('Actions');?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($phuong['Sinhvien'] as $sinhvien):
			$class = null;
			if ($i++ % 2 == 0) {
				$class = ' class="altrow"';
			}
		?>
		<tr<?php echo $class;?>>
			<td><?php echo $sinhvien['id'];?></td>
			<td><?php echo $sinhvien['phuong_id'];?></td>
			<td><?php echo $sinhvien['dantoc_id'];?></td>
			<td><?php echo $sinhvien['doituong_id'];?></td>
			<td><?php echo $sinhvien['lop_id'];?></td>
			<td><?php echo $sinhvien['mssv'];?></td>
			<td><?php echo $sinhvien['holot'];?></td>
			<td><?php echo $sinhvien['ten'];?></td>
			<td><?php echo $sinhvien['ngaysinh'];?></td>
			<td><?php echo $sinhvien['gioitinh'];?></td>
			<td><?php echo $sinhvien['pass'];?></td>
			<td><?php echo $sinhvien['email'];?></td>
			<td><?php echo $sinhvien['diachi'];?></td>
			<td><?php echo $sinhvien['dtdd'];?></td>
			<td class="actions">
				<?php echo $html->link(__('Hiển thị', true), array('controller' => 'sinhviens', 'action' => 'view', $sinhvien['id'])); ?>
				<?php echo $html->link(__('Sửa', true), array('controller' => 'sinhviens', 'action' => 'edit', $sinhvien['id'])); ?>
				<?php echo $html->link(__('Xóa', true), array('controller' => 'sinhviens', 'action' => 'delete', $sinhvien['id']), null, sprintf(__('Bạn có chắc muốn xóa không?', true), $sinhvien['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $html->link(__('Thêm sinh viên', true), array('controller' => 'sinhviens', 'action' => 'add'));?> </li>
		</ul>
	</div>
</div>
